package com.leoman.dao;

import com.leoman.entity.UserSealInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * UserSealInfoDao
 * Created by 涂奕恒 on 2016/12/6 0006 下午 2:18.
 */
public interface UserSealInfoDao extends JpaRepository<UserSealInfo, Integer>, JpaSpecificationExecutor<UserSealInfo> {

    @Query("select a from UserSealInfo a where a.user.id = ?1")
    List<UserSealInfo> findListByUserId(Integer userId);
}